home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Demos / Commander Demo / Commander 2.0.1 Demo / Commander 2.0.1 Demo.rsrc / TEXT_5125_Field.txt < prev    next >
Encoding:
Text File  |  1994-08-15  |  1.0 KB  |  36 lines

  1. ¬†Field (field pointer)                    -> Number
  2. ¬†Field (file number; field number) -> Pointer
  3.                                                                                     Pg 43-6
  4.      
  5. field pointer       Pointer        Pointer to a field      
  6. file number        Number        File number
  7. field number      Number        Field number          
  8.  
  9.     
  10. Field has two different forms.
  11.  
  12. If passed file number and field number, Field returns a pointer to the field.
  13.  
  14. If passed field pointer, Field returns the field number of the field.
  15.  
  16.  
  17. The following example sets the FieldPtr variable to a pointer to the second field in the third file:
  18.  
  19.          FieldPtr := Field (3; 2)
  20.  
  21.  
  22. Using the first form of the Field command on FieldPtr returns the number 2. For example, the following line sets FieldNum to 2:
  23.  
  24.          FieldNum := Field (FieldPtr)
  25.  
  26.  
  27. The following example sets the FieldNum variable to the field number of [File3] Field2:
  28.  
  29.          FieldNum := Field (¬ª[File3]Field2)
  30.  
  31.  
  32.  
  33. See also: Count¬†fields, FIELD¬†ATTRUBUTES, ¬†Fieldname, 
  34.             ¬†File
  35.  
  36.